/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.bus.entity;

import com.thinkgem.jeesite.modules.sys.entity.Attachment;
import com.thinkgem.jeesite.modules.sys.entity.User;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

import java.util.List;
import java.util.Map;

/**
 * 养殖场企业信息Entity
 * @author mengying
 * @version 2019-05-29
 */
public class Ent extends DataEntity<Ent> {
	
	private static final long serialVersionUID = 1L;
	private String entHistoryId;		// 备案历史表
	private String cardNo;		// 营业执照号,统一社会信用代码
	private String entName;		// 企业名称
	private String entTypeCode;		// 字典项(养殖场类型)
	private String gradeType;		// 字典项(养殖场规模)
	private String legalPerson;		// 法人名称
	private String legalIdCard;		// 法人身份证号码
	private String legalPhone;		// 联系方式
	private String payee;		// 收款人
	private String bankCard;		// 银行卡卡号
	private String openingBank;		// 开户行
	private String areaCode;		// 省市县区编码(sys_area code)冗余字段统计分析
	private String preventNo;		// 防疫合格证号
	private String auditStatus;		// 审核状态（0:未审核;1:通过;2驳回）
	private String sort;		// 排序
	private String status;		// 启用状态 0=不可用 1=可用

	private Address address;	// 企业地址
	private List<Attachment> attachmentList;	// 附件列表
	private EntDic entDic;	// 养殖品种列表
	private User user;
	private EntHistory entHistory=new EntHistory();
	//辅助字段
	private List<EntDic> entDicList;	// 养殖品种列表
	private List<Map<String, Object>> dicList;	// 养殖品种列表
	private String entTypeCodeLabel;//阶段lable
	private String gradeTypeCodeLabel;//阶段lable
	private String auditId;//审核表id
	private String mobile;//联系人电话


	public Ent() {
		super();
	}

	public Ent(String id){
		super(id);
	}

	@Length(min=0, max=18, message="营业执照号,统一社会信用代码长度必须介于 0 和 18 之间")
	public String getCardNo() {
		return cardNo;
	}

	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}
	
	@Length(min=0, max=100, message="企业名称长度必须介于 0 和 100 之间")
	public String getEntName() {
		return entName;
	}

	public void setEntName(String entName) {
		this.entName = entName;
	}
	
	@Length(min=0, max=5, message="字典项(养殖场类型)长度必须介于 0 和 5 之间")
	public String getEntTypeCode() {
		return entTypeCode;
	}

	public void setEntTypeCode(String entTypeCode) {
		this.entTypeCode = entTypeCode;
	}
	
	@Length(min=0, max=50, message="字典项(养殖场规模)长度必须介于 0 和 50 之间")
	public String getGradeType() {
		return gradeType;
	}

	public void setGradeType(String gradeType) {
		this.gradeType = gradeType;
	}
	
	@Length(min=0, max=20, message="法人名称长度必须介于 0 和 20 之间")
	public String getLegalPerson() {
		return legalPerson;
	}

	public void setLegalPerson(String legalPerson) {
		this.legalPerson = legalPerson;
	}
	
	@Length(min=0, max=20, message="法人身份证号码长度必须介于 0 和 20 之间")
	public String getLegalIdCard() {
		return legalIdCard;
	}

	public void setLegalIdCard(String legalIdCard) {
		this.legalIdCard = legalIdCard;
	}
	
	@Length(min=0, max=20, message="联系方式长度必须介于 0 和 20 之间")
	public String getLegalPhone() {
		return legalPhone;
	}

	public void setLegalPhone(String legalPhone) {
		this.legalPhone = legalPhone;
	}
	
	@Length(min=0, max=100, message="收款人长度必须介于 0 和 100 之间")
	public String getPayee() {
		return payee;
	}

	public void setPayee(String payee) {
		this.payee = payee;
	}
	
	@Length(min=0, max=20, message="银行卡卡号长度必须介于 0 和 20 之间")
	public String getBankCard() {
		return bankCard;
	}

	public void setBankCard(String bankCard) {
		this.bankCard = bankCard;
	}
	
	@Length(min=0, max=100, message="开户行长度必须介于 0 和 100 之间")
	public String getOpeningBank() {
		return openingBank;
	}

	public void setOpeningBank(String openingBank) {
		this.openingBank = openingBank;
	}
	
	@Length(min=0, max=12, message="省市县区编码(sys_area code)冗余字段统计分析长度必须介于 0 和 12 之间")
	public String getAreaCode() {
		return areaCode;
	}

	public void setAreaCode(String areaCode) {
		this.areaCode = areaCode;
	}
	
	@Length(min=0, max=1, message="审核状态（0:未审核;1:通过;2驳回）长度必须介于 0 和 1 之间")
	public String getAuditStatus() {
		return auditStatus;
	}

	public void setAuditStatus(String auditStatus) {
		this.auditStatus = auditStatus;
	}
	
	@Length(min=0, max=4, message="排序长度必须介于 0 和 4 之间")
	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}
	
	@Length(min=0, max=1, message="启用状态 0=不可用 1=可用长度必须介于 0 和 1 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	public Address getAddress() {
		return address;
	}

	public void setAddressInfo(Address address) {
		this.address = address;
	}

	public List<Attachment> getAttachmentList() {
		return attachmentList;
	}

	public void setAttachmentList(List<Attachment> attachmentList) {
		this.attachmentList = attachmentList;
	}


	public String getEntTypeCodeLabel() {
		return entTypeCodeLabel;
	}

	public void setEntTypeCodeLabel(String entTypeCodeLabel) {
		this.entTypeCodeLabel = entTypeCodeLabel;
	}

	public String getGradeTypeCodeLabel() {
		return gradeTypeCodeLabel;
	}

	public void setGradeTypeCodeLabel(String gradeTypeCodeLabel) {
		this.gradeTypeCodeLabel = gradeTypeCodeLabel;
	}

	public List<EntDic> getEntDicList() {
		return entDicList;
	}

	public void setEntDicList(List<EntDic> entDicList) {
		this.entDicList = entDicList;
	}

	public List<Map<String, Object>> getDicList() {
		return dicList;
}
    public EntDic getEntDic() {
        return entDic;
    }
    public void setEntDic(EntDic entDic) {
        this.entDic = entDic;
    }

	public void setDicList(List<Map<String, Object>> dicList) {
		this.dicList = dicList;
	}

	public String getEntHistoryId() {
		return entHistoryId;
	}

	public void setEntHistoryId(String entHistoryId) {
		this.entHistoryId = entHistoryId;
	}

	public String getPreventNo() {
		return preventNo;
	}

	public void setPreventNo(String preventNo) {
		this.preventNo = preventNo;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getAuditId() {
		return auditId;
	}

	public void setAuditId(String auditId) {
		this.auditId = auditId;
	}

	public void setAddress(Address address) {
		this.address = address;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public EntHistory getEntHistory() {
		return entHistory;
	}

	public void setEntHistory(EntHistory entHistory) {
		this.entHistory = entHistory;
	}
}